<template>
  <ul class="ProductListData">
    <li v-for="(item, index) in data" :key="index">
      <ProductListCard :data="item"></ProductListCard>
    </li>
  </ul>
</template>

<script>
import ProductListCard from "@/components/card/ProductListCard.vue";

export default {
  name: "ProductList",
  components: {
    ProductListCard
  },
  props: ["data"]
};
</script>
<style scoped>
li {
  float: left;
  border: none;
  width: 48.4%;
  margin: 0.06rem 0.8%;
  background: #fff;
  position: relative;
}

.ProductListData {
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  background-color: #f5f5f5;
  padding: 0.04rem 0.06rem;
}
</style>